﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpotsHub.RouteService.Data
{
    [Table("Route_RoutePlan")]
    public class RoutePlan : EntityBase
    {
        public RoutePlan()
        {
            AssignedLocations = new List<Location>();
        }

        public RouteStatus Status { get; set; }

        public int DriverId { get; set; }

        public int WarehouseId { get; set; }

        public virtual Driver Driver { get; set; }

        public virtual Warehouse Warehouse { get; set; }

        public virtual List<Location> AssignedLocations { get; set; }
    }

    public enum RouteStatus : byte
    {
        NewlyPlanned = 0,
        InProgress = 1,
        Completed
    }
}
